﻿<Application x:Class="BlogApp.WP8.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" d1p1:Ignorable="d" xmlns:d1p1="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:utils="clr-namespace:BlogApp.WP8.Utils"
             xmlns:viewModel="clr-namespace:BlogApp.WP8.ViewModel"
             xmlns:system="clr-namespace:System;assembly=mscorlib">
    <!--Application Resources-->
    <Application.Resources>
        <ResourceDictionary>
            <system:String x:Key="BlogUrl">http://blogapp.media-lesson.com/{0}</system:String>
            
            <local:LocalizedStrings xmlns:local="clr-namespace:BlogApp.WP8" x:Key="LocalizedStrings" />
            <viewModel:ViewModelLocator x:Key="Locator" />
            <utils:TestConverter x:Key="TestConverter" />
            <utils:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
            <utils:UnicodeToTextConverter x:Key="UnicodeToTextConverter" />
            <utils:BoolToOpacityConverter x:Key="BoolToOpacityConverter"/>
            

            <!-- Color and Brushes -->
            <Color x:Key="AccentColor">#FFff5c26</Color>
            <Color x:Key="SplashColor">#FFff5c26</Color>
            <Color x:Key="BackgroundColor">#FFFFFFFF</Color>
            <Color x:Key="TeaserTextColor">#FF000000</Color>
            <Color x:Key="TextColor">#FF000000</Color>
            <Color x:Key="CategoryColor">#FFFFFFFF</Color>
            <Color x:Key="AppBarForegroundColor">#FFFFFFFF</Color>
            
            <SolidColorBrush x:Key="AccentBrush" Color="{StaticResource AccentColor}"/>
            <SolidColorBrush x:Key="SplashBrush" Color="{StaticResource SplashColor}"/>
            <SolidColorBrush x:Key="TeaserTextBrush" Color="{StaticResource TeaserTextColor}"/>
            <SolidColorBrush x:Key="TextColorBrush" Color="{StaticResource TextColor}"/>
            <SolidColorBrush x:Key="CategoryBrush" Color="{StaticResource CategoryColor}"/>
            <SolidColorBrush x:Key="BackgroundBrush" Color="{StaticResource BackgroundColor}"/>

           

            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Common/CustomStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>

        </ResourceDictionary>
    </Application.Resources>
    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService Launching="Application_Launching" Closing="Application_Closing" Activated="Application_Activated" Deactivated="Application_Deactivated" />
    </Application.ApplicationLifetimeObjects>
</Application>